import Layout from '@/layout'

const projectRouter =
  {
    path: '/newProject',
    component: Layout,
    hidden: true,
    redirect: '/newProject/project',
    children: [
      // 项目立项
      {
        path: 'project',
        component: () => import('@/views/newProject/ProjectApproval/project/index'),
        name: 'project',
        meta: { title: '项目立项', icon: 'el-icon-user-solid', noCache: false }
      },
      {
        path: 'projectAdd',
        component: () => import('@/views/newProject/ProjectApproval/project/components/index'),
        name: 'projectAdd',
        meta: { title: '项目登记', icon: 'el-icon-user-solid', noCache: false }
      },
      {
        path: 'project-detail',
        component: () => import('@/views/newProject/ProjectApproval/project/components/detailChild'),
        name: '项目详情',
        meta: {
          title: '项目详情',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      {
        path: 'projectFile',
        component: () => import('@/views/newProject/ProjectApproval/projectFile/index'),
        name: 'ProjectFile',
        meta: { title: '添加附件', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'project-exploration',
        component: () => import('@/views/newProject/ProjectApproval/exploration/index'),
        name: '项目勘探点',
        meta: {
          title: '项目勘探点',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      {
        path: 'exploration-detail',
        component: () => import('@/views/newProject/ProjectApproval/exploration/components/detail'),
        name: '勘探点详情',
        meta: {
          title: '勘探点详情',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      // 项目分配
      {
        path: 'distributionList',
        component: () => import('@/views/newProject/ProjectAllocation/distributionList/list'),
        name: 'DistributionList', /* 项目分配 */
        meta: { title: '项目分配', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'drillHoleList',
        component: () => import('@/views/newProject/ProjectAllocation/distributionList/drillHoleList'),
        name: 'DrillHoleList', /* 项目分配 */
        meta: { title: '钻孔分配', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'project-personal',
        component: () => import('@/views/newProject/ProjectAllocation/projectPersonal/index'),
        name: '项目已配人员',
        meta: {
          title: '项目已配人员',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      {
        path: 'project-proPersonalExploration',
        component: () => import('@/views/newProject/ProjectAllocation/projectPersonal-exploration/index'),
        name: '项目人员已配勘探点',
        meta: {
          title: '项目人员已配勘探点',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      {
        path: 'project-equipment',
        component: () => import('@/views/newProject/ProjectAllocation/projectEquipment/index'),
        name: '项目已配设备',
        meta: {
          title: '项目已配设备',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      {
        path: 'project-proEquipmentExploration',
        component: () => import('@/views/newProject/ProjectAllocation/projectEquipment-exploration/index'),
        name: '项目设备已配勘探点',
        meta: {
          title: '项目设备已配勘探点',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      {
        path: 'projectExploration-Equipment',
        component: () => import('@/views/newProject/ProjectAllocation/projectExploration-Equipment/index'),
        name: '项目勘探点已配设备',
        meta: {
          title: '项目勘探点已配设备',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      {
        path: 'projectExploration-Personal',
        component: () => import('@/views/newProject/ProjectAllocation/projectExploration-Personal/index'),
        name: '项目勘探点已配人员',
        meta: {
          title: '项目勘探点已配人员',
          icon: 'el-icon-user-solid',
          noCache: true
        }
      },
      {
        path: 'assignCompany',
        component: () => import('@/views/newProject/ProjectAllocation/assignCompany/index'),
        name: 'assignCompany',
        meta: { title: '试验委托', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'assignCompany-add',
        component: () => import('@/views/newProject/ProjectAllocation/assignCompany/components/add'),
        name: 'assignCompany-add',
        meta: { title: '试验委托新增', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'assignCompany-detail',
        component: () => import('@/views/newProject/ProjectAllocation/assignCompany/components/detail'),
        name: 'assignCompany-detail',
        meta: { title: '试验委托详情', icon: 'el-icon-user-solid', noCache: true }
      },
      // 项目数据
      {
        path: 'projectData',
        component: () => import('@/views/newProject/ProjectData/projectDataList/list'),
        name: '项目数据',
        meta: { title: '项目数据', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'staticProbePoint',
        component: () => import('@/views/newProject/ProjectData/staticProbePoint/index'),
        name: 'staticProbePoint',
        meta: { title: '静探点', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'staticProbePoint-add',
        component: () => import('@/views/newProject/ProjectData/staticProbePoint/components/add'),
        name: 'staticProbePointAdd',
        meta: { title: '新增静探报告', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'dataAcquisition',
        component: () => import('@/views/newProject/ProjectData/dataAcquisition/index'),
        name: 'dataAcquisition',
        meta: { title: '数据采集', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'workRecord',
        component: () => import('@/views/newProject/ProjectData/projectDataList/components/workRecord'),
        name: 'workRecord',
        meta: { title: '工作记录', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'layered-settings',
        component: () => import('@/views/newProject/ProjectData/LayeredSettings/index'),
        name: 'LayeredSettings',
        meta: { title: '分层设置', icon: 'el-icon-user-solid', noCache: true }
      },
      // 项目变更
      {
        path: 'projectChange',
        component: () => import('@/views/newProject/ProjectChange/projectChangeList/list'),
        name: 'projectChange',
        meta: { title: '项目变更', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'detailContract',
        component: () => import('@/views/newProject/ProjectChange/projectChangeList/components/detailContract'),
        name: 'detailContract',
        meta: { title: '合同变更', icon: 'el-icon-user-solid', noCache: false }
      },
      {
        path: 'repair-exploration',
        component: () => import('@/views/newProject/ProjectChange/repairExokiration/index'),
        name: '补勘',
        meta: { title: '补勘', icon: 'el-icon-user-solid', noCache: true }
      },
      {
        path: 'repair-exploration-detail',
        component: () => import('@/views/newProject/ProjectChange/repairExokiration/components/detail'),
        name: '补勘详情',
        meta: { title: '补勘详情', icon: 'el-icon-user-solid', noCache: true }
      },
      // 被抽查项目
      {
        path: 'checked-project-list',
        component: () => import('@/views/newProject/checkedProjectList/index'),
        name: 'checkedProjectList',
        meta: { title: '被抽查项目', icon: 'el-icon-user-solid', noCache: false }
      },
      // 抽查项目
      {
        path: 'check-project-list',
        component: () => import('@/views/newProject/checkProjectList/index'),
        name: 'checkProjectList',
        meta: { title: '抽查项目', icon: 'el-icon-user-solid', noCache: false }
      },
      // 巡查项目
      {
        path: 'patrol-projectList',
        component: () => import('@/views/newProject/patrolProjectList/index'),
        name: 'patrolProjectList',
        meta: { title: '巡查项目', icon: 'el-icon-user-solid', noCache: false }
      },
      {
        path: 'inspectionRecord',
        component: () => import('@/views/projectInspection/inspectionRecord'),
        name: 'inspectionRecord',
        meta: { title: '巡查结果录入', icon: 'el-icon-user-solid', noCache: true }
      },
      // 项目汇总
      {
        path: 'project-summary',
        component: () => import('@/views/newProject/ProjectSummary/index'),
        name: 'projectSummary',
        meta: { title: '项目汇总', icon: 'el-icon-user-solid', noCache: false }
      }
    ]
  }
export default projectRouter
